<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
<link rel="stylesheet" href="script/bootstrap-3.3.7.min.css">

  <title>百叶窗特效（Blind Effect）演示</title>
  <!-- <link rel="stylesheet" href="script/jquery-ui.1.10.4.css">  <!-- 注意顺序--> -->
  <script src="script/jquery-1.10.min.js"></script>
  <link rel="stylesheet" type="text/css" media="screen" href="script/messenger.css">
  <!-- <link rel="stylesheet" type="text/css" media="screen" href="script/messenger-theme-future.css"> -->
  <script type="text/javascript" src="script/messenger.min.js"></script>
  <script type="text/javascript" src="script/messenger-theme-future.js"></script>


  <style>
  #tog {
    text-align: center;
    width: 100px;
    height: 100px;
    background: #ccc;
  }
  </style>
  <script src="script/jquery-1.10.min.js"></script>
  <script src="script/jquery-ui.1.10.4.min.js"></script>
</head>
<body>
<div class="container">
  <div class="row">
    <button id = "message"> 消息 </button>

  </div>

 <div class="row">
    <div id="tog">
      <h2>测试</h2>
    </div> 
    <!-- 颜色style -->
  </div>

  <div class="row"> 
  <!-- margin-bottom: 10px;  外边距  margin-top: 20px 行间距-->
      <div class="col-md-3" style="margin-bottom: 10px;margin-top: 20px;" >

        <div id="elem"></div> <!-- 进度条 -->

      </div>
  </div>

</div>
<script type="text/javascript">

$(document).ready(function(){
Messenger.options = {
    extraClasses: 'messenger-fixed messenger-on-bottom',
    theme: 'air'
}

function abc(){
    console.log(1)
    // Messenger().post
    //     message: "test消息"
    //     type: 'error'
    //     showCloseButton: true
    //     // actions: false
};

  $("#message").click(function(event) { //5秒消失
    　　  setInterval(function(){
      console.log(1);
        Messenger().post({
          message: 'test消息',
          type: 'info',
          // showCloseButton: true,
          actions: false,
        })

    }, 6000);
  });

});



</script>
 
</body>
</html>